package cn.lab;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
@RestController
@MapperScan("cn.lab.dao")
public class OneApplication {
    @GetMapping("/hi")
    public Map<String, Object> gradle() {
        Map<String, Object> map = new HashMap<>();
        map.put("msg", "hi");
        return map;
    }
    public static void main(String[] args) {
        SpringApplication.run(OneApplication.class, args);
    }

}
